from SCons.Util import Split
import os

Import('env')

print("mylib......")
print(os.getcwd())

source_files = env.Glob("*.c")
paths = Split("./")
libs = Split()
libs_path = Split()

env.StaticLibrary(target="mylib",
                  source=source_files,
                  CPPPATH=paths,        # 头文件
                  LIBPATH=libs_path,    # 库目录
                  LIBS=libs,            # 库名称
                  CCFLAGS=env['ccflags']
                  )
